/**
 * 菜单
 */
function Menu(id, name, icon) {
	this.id=id;
	this.name=name;
	this.icon=icon;
	this.ui = $('<a id="' + id + '" href="javascript:void(0);"><span class="fa ' + icon + '"></span><span class="text">' + name + '</span></a>');

	this.ui.attr("id", id);

	var menu=this;
	this.ui.click(function(){
		menu.onClick();
	});
}

Menu.prototype.getUI = function() {
	return this.ui;
};

Menu.prototype.setClick = function(clickFun) {
	this.onClick=clickFun;
};

Menu.prototype.disable=function(){
	this.ui.remove();
};